package com.fqh.service.impl;

import com.fqh.entity.Fooddetail;
import com.fqh.mapper.FoodDetailMapper;
import com.fqh.service.FoodDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
@Service
public class FoodDetailServiceImpl implements FoodDetailService {

    @Autowired
    private FoodDetailMapper foodDetailMapper;

    public List<Fooddetail> findAllCaiByType(Integer id) {
        return foodDetailMapper.findAllCaiByType(id);
    }
}
